package com.zhb.designmode.creationmode.builder.classical;

public class Phone {

    private String cpu;//必填
    private String screen;//必填
    private Integer camera;
    private String battery;

    public Phone(String cpu,String screen){
        this.cpu = cpu;
        this.screen = screen;
    }

    public void setCamera(Integer camera) {
        this.camera = camera;
    }

    public void setBattery(String battery) {
        this.battery = battery;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "cpu='" + cpu + '\'' +
                ", screen='" + screen + '\'' +
                ", camera=" + camera +
                ", battery='" + battery + '\'' +
                '}';
    }
}
